package cn.java79.springcore.gardon;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
//花园
public class Gardon {
    //地址和电话
    private String addr;
    private String tele;
    //培育的花卉的名称
    private List<String> flowers=new ArrayList<>();
    //员工和职务
    private Map<String,String>emps=new HashMap<>();
    //客户和他的地址
    private Properties prop=new Properties();

    public void selfIntro(){
        System.out.println("本苗圃位于"+this.addr+",电话是"+this.tele);
        System.out.println("培育的花卉有："+this.flowers);
        System.out.println("职工有：");
        emps.forEach((x,y)->{
            System.out.println("姓名:"+x+",职务："+y);
        });
        System.out.println("大客户有：");
        prop.forEach((x,y)->{
            System.out.println("客户名称:"+x+",地址："+y);
        });
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public void setTele(String tele) {
        this.tele = tele;
    }

    public void setFlowers(List<String> flowers) {
        this.flowers = flowers;
    }

    public void setEmps(Map<String, String> emps) {
        this.emps = emps;
    }

    public void setProp(Properties prop) {
        this.prop = prop;
    }
}
